Imports TreeCreeper01Interfaces

Friend Class cCSVDataAgentForSpatialData
    Inherits cCSVDataAgent
    Implements IDataAgentSpatial

    Private pSpatialAssistant As cSpatialAssistant

    Protected pColumnIndexForXcoordinate As Integer
    Protected pColumnIndexForYcoordinate As Integer
    Protected pColumnIndexForCanBeRandomized As Integer


    Public Sub New(ByVal FileName As String, Optional ByVal TaxonomicOverrideFilename As String = "")
        MyBase.New(FileName, TaxonomicOverrideFilename)
        pSpatialAssistant = New cSpatialAssistant(Me)
    End Sub

    Public Sub PopulateStudy(ByVal Study As IStudySpatial) Implements IDataAgentSpatial.PopulateStudySpatial
        pSpatialAssistant.PopulateStudySpatial(Study)
    End Sub

    ReadOnly Property SourceFileType As eSourceFileType Implements IDataAgentSpatial.SourceFileType
        Get
            Return pSourceFileType
        End Get
    End Property

End Class
